package cn.wolfcode.p2p.bussness.service;

import cn.wolfcode.p2p.bussness.domain.Bid;

import java.util.List;

public interface IBidService {
    int save(Bid bid);

    int update(Bid bid);

    Bid get(Long id);

    List<Bid> listAll();

    /**
     * 根据借款对象ID 更新 投标对象的状态
     * @param bidRequestId
     * @param state
     */
    void updateState(Long bidRequestId, int state);
}
